﻿using System;
using System.Threading.Tasks;
using EventBus.RabbitMQ.Events;

namespace Demo
{
    [QueueSubscribe(Queue = "user.login", ExchangeName = "", ExchangeType = "", RouteKey = "user.login")]
    public class LoginEventHandler : BaseQueueHandler<LoginEvent>
    {
        public override async Task Handler(LoginEvent e)
        {
            await Task.CompletedTask;
            Console.WriteLine($"{e.UserId} login success: {e.Success}");
        }
    }
}